aboutsummaryrefslogtreecommitdiff
path: root/ui/src/routes/view/[id]/+page.js
blob: a7af89532a05882d8d62d0136be4c78e8521c170 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15




/** @type {import('./$types').PageLoad} */
export async function load({ params }) {
   const req = await fetch(`/api/v1/view/${params.id}`) 
    const reqJson = await req.json();

  return {
    id: params.id,
    req: req,
    reqJson: reqJson,
  };
}